<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <include file="Public:jquery" />
        <include file="Public:startapp" />
        <include file="Public:startmoo" />
    </head>
	<include file="Public:header" />
        
        <div class="layout">
            
            <include file="Public:position" />
            
            <table class="warp" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="sidebar" valign="top">
                        <include file="Public:sidebar" />
                    </td>
                    <td class="contents" valign="top">
                                                
                        <div class="a_table">
                        <table cellspacing="1" width="100%" class="gr_list">
	                        <tr style="background: #f0f7ff; font-weight: bold;">
	                            <td width="20" height="20"></td>
	                            <td width="60" align="center">编号</td>
	                            <td width="90" align="center">评论人</td>
	                            <td align="center">评论内容</td>
	                            <td align="center">评论文档</td>
	                            <td width="100" align="center">评论时间</td>
	                            <td width="160" align="center">操作</td>
	                        </tr>
	                        <volist id="vo" name="list">
	                        <tr rel="{$vo['id']}">
	                            <td><input type="checkbox" name="list[]" value="{$vo.id}" /></td>
	                            <td align="center">{$vo['id']}</td>
	                            <td align="center">{$vo.username}</td>
	                            <td>
	                            	{$vo.msg}
	                            	<?php
	                            		$reply_list = $list_model->where("pid='".$vo['id']."'")->select();
	                            		foreach($reply_list as $key => $val){
	                            	?>
	                            	<dl class="reply">
	                                    <dt>{$val.username} 于 {$val.dtime|date=C('DEFAULT_DATE_FORMAT'),###} 回复 {$vo.username}</dt>
	                                    <dd>{$val.msg}</dd>
	                                </dl>
	                            	<?php
	                            		}
	                            	?>
	                            	
	                            </td>
	                            <td align="center">{$vo.arctitle}</td>
	                            <td align="center">{$vo.dtime|date=C('DEFAULT_DATE_FORMAT'),###}</td>
	                            <td align="center">
	                                <a href="{:U('edit',array(
	                                'id' => $vo['id'],
	                                'cid' => $vo['cid'],
	                                'tag' => $_GET['tag'],
	                            ))}" class="edit_model">编辑</a><span class="action_line">&nbsp;&nbsp;|&nbsp;&nbsp;</span><a href="{:U('delete',array('id' => $vo['id']))}" class="del_node" rel="{$vo.id}">删除</a>
	                            </td>
	                        </tr>
	                        </volist>
	                    </table>
	                    <div class="page">{$page}</div>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        
        <include file="Public:footer" />
    </body>
</html>